package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 上课提醒与扣课时
 * </p>
 *
 * @author hpiggy
 * @since 2024-06-12
 */
@TableName("mq_scheduling_log")
@ApiModel(value = "MqSchedulingLog对象", description = "上课提醒与扣课时")
@Data
public class MqSchedulingLog implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("1：按班级排课，2：补、调、消课")
    private Integer schedulingType;

    @ApiModelProperty("上课日期")
    private LocalDate schoolDate;

    @ApiModelProperty("开始上课时间")
    private LocalDateTime startDateTime;

    @ApiModelProperty("结束上课时间")
    private LocalDateTime endDateTime;

    @ApiModelProperty("0未推送到mq,1推送到mq，2已被消费")
    private Integer status;

    @ApiModelProperty("执行时间")
    private LocalDateTime executeTime;

    @ApiModelProperty("延迟多少秒")
    private Long delayedSecond;

    @ApiModelProperty("1扣课时，2上课提醒")
    private Integer type;

    @ApiModelProperty("备注")
    private String remark;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
